<?php
################################################################################
# Insurance setup
################################################################################
$cfg    =   Celini::configInstance();
$ins    =   array(
    'min_salary'    =>  650000,
    'commune_hospital'  =>  false,
    'hospital_rank'     =>  1
);
$cfg->set('insurance', $ins);

################################################################################
# Payment statistics
################################################################################
// Thu ngân có thể xem báo cáo thu tiền của BN bảo hiểm trong vòng 3 ngày gần nhất
$cfg->set('max_insurance_allowance_days', 3);

// Thu ngân có thể xem báo cáo thực thu trong vòng 7 ngày gần nhất
$cfg->set('max_real_payment_allowance_days', 7);
################################################################################
# Translation setup
################################################################################
$translate = Zend_Registry::get('Zend_Translate');
$lang = $_SESSION['lang'];
try {

    $translate->addTranslation(realpath(dirname(__FILE__))."/languages/$lang", $lang,array('scan' => Zend_Translate::LOCALE_DIRECTORY,
            'disableNotices'=>true,
            'clear'=>false
        ));

} catch (Exception $ex) {
    //if exception while loading selected lang folder
    //we load the default langugage folder.
    $translate->addTranslation(realpath(dirname(__FILE__))."/languages/".$config['lang']['default'], $config['lang']['default'],array('scan' => Zend_Translate::LOCALE_DIRECTORY,
            'disableNotices'=>true,
            'clear'=>false
        ));
}
?>